package com.akk.module.avs.entity;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class AvsApplyLoanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AvsApplyLoanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLoanIdIsNull() {
            addCriterion("loan_id is null");
            return (Criteria) this;
        }

        public Criteria andLoanIdIsNotNull() {
            addCriterion("loan_id is not null");
            return (Criteria) this;
        }

        public Criteria andLoanIdEqualTo(Long value) {
            addCriterion("loan_id =", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotEqualTo(Long value) {
            addCriterion("loan_id <>", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdGreaterThan(Long value) {
            addCriterion("loan_id >", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdGreaterThanOrEqualTo(Long value) {
            addCriterion("loan_id >=", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdLessThan(Long value) {
            addCriterion("loan_id <", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdLessThanOrEqualTo(Long value) {
            addCriterion("loan_id <=", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdIn(List<Long> values) {
            addCriterion("loan_id in", values, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotIn(List<Long> values) {
            addCriterion("loan_id not in", values, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdBetween(Long value1, Long value2) {
            addCriterion("loan_id between", value1, value2, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotBetween(Long value1, Long value2) {
            addCriterion("loan_id not between", value1, value2, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanNameIsNull() {
            addCriterion("loan_name is null");
            return (Criteria) this;
        }

        public Criteria andLoanNameIsNotNull() {
            addCriterion("loan_name is not null");
            return (Criteria) this;
        }

        public Criteria andLoanNameEqualTo(String value) {
            addCriterion("loan_name =", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameNotEqualTo(String value) {
            addCriterion("loan_name <>", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameGreaterThan(String value) {
            addCriterion("loan_name >", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameGreaterThanOrEqualTo(String value) {
            addCriterion("loan_name >=", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameLessThan(String value) {
            addCriterion("loan_name <", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameLessThanOrEqualTo(String value) {
            addCriterion("loan_name <=", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameLike(String value) {
            addCriterion("loan_name like", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameNotLike(String value) {
            addCriterion("loan_name not like", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameIn(List<String> values) {
            addCriterion("loan_name in", values, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameNotIn(List<String> values) {
            addCriterion("loan_name not in", values, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameBetween(String value1, String value2) {
            addCriterion("loan_name between", value1, value2, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameNotBetween(String value1, String value2) {
            addCriterion("loan_name not between", value1, value2, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanIconIsNull() {
            addCriterion("loan_icon is null");
            return (Criteria) this;
        }

        public Criteria andLoanIconIsNotNull() {
            addCriterion("loan_icon is not null");
            return (Criteria) this;
        }

        public Criteria andLoanIconEqualTo(String value) {
            addCriterion("loan_icon =", value, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconNotEqualTo(String value) {
            addCriterion("loan_icon <>", value, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconGreaterThan(String value) {
            addCriterion("loan_icon >", value, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconGreaterThanOrEqualTo(String value) {
            addCriterion("loan_icon >=", value, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconLessThan(String value) {
            addCriterion("loan_icon <", value, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconLessThanOrEqualTo(String value) {
            addCriterion("loan_icon <=", value, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconLike(String value) {
            addCriterion("loan_icon like", value, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconNotLike(String value) {
            addCriterion("loan_icon not like", value, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconIn(List<String> values) {
            addCriterion("loan_icon in", values, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconNotIn(List<String> values) {
            addCriterion("loan_icon not in", values, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconBetween(String value1, String value2) {
            addCriterion("loan_icon between", value1, value2, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanIconNotBetween(String value1, String value2) {
            addCriterion("loan_icon not between", value1, value2, "loanIcon");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageIsNull() {
            addCriterion("loan_header_image is null");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageIsNotNull() {
            addCriterion("loan_header_image is not null");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageEqualTo(String value) {
            addCriterion("loan_header_image =", value, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageNotEqualTo(String value) {
            addCriterion("loan_header_image <>", value, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageGreaterThan(String value) {
            addCriterion("loan_header_image >", value, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageGreaterThanOrEqualTo(String value) {
            addCriterion("loan_header_image >=", value, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageLessThan(String value) {
            addCriterion("loan_header_image <", value, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageLessThanOrEqualTo(String value) {
            addCriterion("loan_header_image <=", value, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageLike(String value) {
            addCriterion("loan_header_image like", value, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageNotLike(String value) {
            addCriterion("loan_header_image not like", value, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageIn(List<String> values) {
            addCriterion("loan_header_image in", values, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageNotIn(List<String> values) {
            addCriterion("loan_header_image not in", values, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageBetween(String value1, String value2) {
            addCriterion("loan_header_image between", value1, value2, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanHeaderImageNotBetween(String value1, String value2) {
            addCriterion("loan_header_image not between", value1, value2, "loanHeaderImage");
            return (Criteria) this;
        }

        public Criteria andLoanDescIsNull() {
            addCriterion("loan_desc is null");
            return (Criteria) this;
        }

        public Criteria andLoanDescIsNotNull() {
            addCriterion("loan_desc is not null");
            return (Criteria) this;
        }

        public Criteria andLoanDescEqualTo(String value) {
            addCriterion("loan_desc =", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescNotEqualTo(String value) {
            addCriterion("loan_desc <>", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescGreaterThan(String value) {
            addCriterion("loan_desc >", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescGreaterThanOrEqualTo(String value) {
            addCriterion("loan_desc >=", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescLessThan(String value) {
            addCriterion("loan_desc <", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescLessThanOrEqualTo(String value) {
            addCriterion("loan_desc <=", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescLike(String value) {
            addCriterion("loan_desc like", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescNotLike(String value) {
            addCriterion("loan_desc not like", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescIn(List<String> values) {
            addCriterion("loan_desc in", values, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescNotIn(List<String> values) {
            addCriterion("loan_desc not in", values, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescBetween(String value1, String value2) {
            addCriterion("loan_desc between", value1, value2, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescNotBetween(String value1, String value2) {
            addCriterion("loan_desc not between", value1, value2, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanUrlIsNull() {
            addCriterion("loan_url is null");
            return (Criteria) this;
        }

        public Criteria andLoanUrlIsNotNull() {
            addCriterion("loan_url is not null");
            return (Criteria) this;
        }

        public Criteria andLoanUrlEqualTo(String value) {
            addCriterion("loan_url =", value, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlNotEqualTo(String value) {
            addCriterion("loan_url <>", value, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlGreaterThan(String value) {
            addCriterion("loan_url >", value, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlGreaterThanOrEqualTo(String value) {
            addCriterion("loan_url >=", value, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlLessThan(String value) {
            addCriterion("loan_url <", value, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlLessThanOrEqualTo(String value) {
            addCriterion("loan_url <=", value, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlLike(String value) {
            addCriterion("loan_url like", value, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlNotLike(String value) {
            addCriterion("loan_url not like", value, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlIn(List<String> values) {
            addCriterion("loan_url in", values, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlNotIn(List<String> values) {
            addCriterion("loan_url not in", values, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlBetween(String value1, String value2) {
            addCriterion("loan_url between", value1, value2, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanUrlNotBetween(String value1, String value2) {
            addCriterion("loan_url not between", value1, value2, "loanUrl");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyIsNull() {
            addCriterion("loan_money is null");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyIsNotNull() {
            addCriterion("loan_money is not null");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyEqualTo(String value) {
            addCriterion("loan_money =", value, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyNotEqualTo(String value) {
            addCriterion("loan_money <>", value, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyGreaterThan(String value) {
            addCriterion("loan_money >", value, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyGreaterThanOrEqualTo(String value) {
            addCriterion("loan_money >=", value, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyLessThan(String value) {
            addCriterion("loan_money <", value, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyLessThanOrEqualTo(String value) {
            addCriterion("loan_money <=", value, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyLike(String value) {
            addCriterion("loan_money like", value, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyNotLike(String value) {
            addCriterion("loan_money not like", value, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyIn(List<String> values) {
            addCriterion("loan_money in", values, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyNotIn(List<String> values) {
            addCriterion("loan_money not in", values, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyBetween(String value1, String value2) {
            addCriterion("loan_money between", value1, value2, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanMoneyNotBetween(String value1, String value2) {
            addCriterion("loan_money not between", value1, value2, "loanMoney");
            return (Criteria) this;
        }

        public Criteria andLoanStatusIsNull() {
            addCriterion("loan_status is null");
            return (Criteria) this;
        }

        public Criteria andLoanStatusIsNotNull() {
            addCriterion("loan_status is not null");
            return (Criteria) this;
        }

        public Criteria andLoanStatusEqualTo(Integer value) {
            addCriterion("loan_status =", value, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanStatusNotEqualTo(Integer value) {
            addCriterion("loan_status <>", value, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanStatusGreaterThan(Integer value) {
            addCriterion("loan_status >", value, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("loan_status >=", value, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanStatusLessThan(Integer value) {
            addCriterion("loan_status <", value, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanStatusLessThanOrEqualTo(Integer value) {
            addCriterion("loan_status <=", value, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanStatusIn(List<Integer> values) {
            addCriterion("loan_status in", values, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanStatusNotIn(List<Integer> values) {
            addCriterion("loan_status not in", values, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanStatusBetween(Integer value1, Integer value2) {
            addCriterion("loan_status between", value1, value2, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("loan_status not between", value1, value2, "loanStatus");
            return (Criteria) this;
        }

        public Criteria andLoanIndexIsNull() {
            addCriterion("loan_index is null");
            return (Criteria) this;
        }

        public Criteria andLoanIndexIsNotNull() {
            addCriterion("loan_index is not null");
            return (Criteria) this;
        }

        public Criteria andLoanIndexEqualTo(Integer value) {
            addCriterion("loan_index =", value, "loanIndex");
            return (Criteria) this;
        }

        public Criteria andLoanIndexNotEqualTo(Integer value) {
            addCriterion("loan_index <>", value, "loanIndex");
            return (Criteria) this;
        }

        public Criteria andLoanIndexGreaterThan(Integer value) {
            addCriterion("loan_index >", value, "loanIndex");
            return (Criteria) this;
        }

        public Criteria andLoanIndexGreaterThanOrEqualTo(Integer value) {
            addCriterion("loan_index >=", value, "loanIndex");
            return (Criteria) this;
        }

        public Criteria andLoanIndexLessThan(Integer value) {
            addCriterion("loan_index <", value, "loanIndex");
            return (Criteria) this;
        }

        public Criteria andLoanIndexLessThanOrEqualTo(Integer value) {
            addCriterion("loan_index <=", value, "loanIndex");
            return (Criteria) this;
        }

        public Criteria andLoanIndexIn(List<Integer> values) {
            addCriterion("loan_index in", values, "loanIndex");
            return (Criteria) this;
        }

        public Criteria andLoanIndexNotIn(List<Integer> values) {
            addCriterion("loan_index not in", values, "loanIndex");
            return (Criteria) this;
        }

        public Criteria andLoanIndexBetween(Integer value1, Integer value2) {
            addCriterion("loan_index between", value1, value2, "loanIndex");
            return (Criteria) this;
        }

        public Criteria andLoanIndexNotBetween(Integer value1, Integer value2) {
            addCriterion("loan_index not between", value1, value2, "loanIndex");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}